<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>课程考试系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<jsp:useBean id="students" class="entity.Students" scope="session"/>
	<jsp:useBean id="teachers" class="entity.Teachers" scope="session"/>
	<jsp:useBean id="managers" class="entity.Admin" scope="session"/>
  </head>
  <%
  	String ss = "home.html";
	if ( students.getName() != null) {
		ss = "studentin.html";
	}else if ( teachers.getName() != null){
		ss = "teacherin.html";
	}else if ( managers.getName() != null){
		ss = "managerin.html";
	}
  %>
  <body>
    <jsp:include page= "<%=ss %>" flush="true"/>
  </body>
</html>
